﻿#ifndef __SS_NONCOPYABLE_H__
#define __SS_NONCOPYABLE_H__

namespace StarSeeker
{

class ssNoncopyable
{
protected:
#if __cplusplus>=201103L
    ssNoncopyable() = default;
    ~ssNoncopyable() = default;
#else
    ssNoncopyable() {}
    ~ssNoncopyable() {}
#endif
#if __cplusplus>=201103L
    ssNoncopyable( const ssNoncopyable& ) = delete;
    ssNoncopyable& operator=( const ssNoncopyable& ) = delete;
#else
private:
    ssNoncopyable( const ssNoncopyable& );
    ssNoncopyable& operator=( const ssNoncopyable& );
#endif
};

}
#endif
